﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DHQGHN.DAL.Models.Admin
{
    public class Log
    {
        public long ID { get; set; }
        public string Account { get; set; }
        public string SoftWare { get; set; }
        public string Function { get; set; }
        public string Action { get; set; }
        public string Data { get; set; }
        public DateTime ActionTime { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        public int RecordCount { get; set; }
        public int AppId { get; set; }
        public string AppCode { get; set; }
        public string AppName { get; set; }

        public Log()
        {
            ID = Common.NullValues.Default_Long;
            Account = Common.NullValues.Default_String;
            SoftWare = Common.NullValues.Default_String;
            Function = Common.NullValues.Default_String;
            Action = Common.NullValues.Default_String;
            Data = Common.NullValues.Default_String;
            ActionTime = Common.NullValues.Default_DateTime;
            StartDate = Common.NullValues.Default_DateTime;
            EndDate = Common.NullValues.Default_DateTime;
            RecordCount = 0;
            AppId = 0;
            AppCode = Common.NullValues.Default_String;
            AppName = Common.NullValues.Default_String;
        }

        public const string FIELD_ID = "ID";
        public const string FIELD_ACCOUNT = "Account";
        public const string FIELD_SOFTWARE = "SoftWare";
        public const string FIELD_FUNCTION = "Function";
        public const string FIELD_ACTION = "Action";
        public const string FIELD_DATA = "Data";
        public const string FIELD_ACTION_TIME = "ActionTime";
        public const string FIELD_RECORD_COUNT = "RecordCount";
        public const string FIELD_APP_NAME = "AppName";
    }
}
